changePassword = function ()
{
	var form = document.getElementById("login-change-password-form");
	var password 		= document.getElementById("login-change-password-form-previous-password");
	var newPassword 	= document.getElementById("login-change-password-form-new-password");
	var newPassword2 	= document.getElementById("login-change-password-form-new-password-2");
	
	if(!password.value){
		alert("Debes ingresar tu contraseña");
		password.focus();
		return;
	}
	
	if(!newPassword.value || !newPassword2.value){
		alert("Debes ingresar la nueva contraseña");
		if(!newPassword.value){
			newPassword.focus();
		}else{
			newPassword2.focus();
		}
		return;
	}
	
	if(newPassword.value != newPassword2.value){
		alert("Las contraseñas no coinciden");
		newPassword.focus();
		return;
	}
	
	form.submit()
}

window.onload = function ()
{
	var password = document.getElementById("login-change-password-form-previous-password");
		password.focus();
}